﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections;

namespace NamedPipe
{
    [Serializable]
    public sealed class MethodFxCop : IEqualityComparer<MethodFxCop>
    {
        public String MethodName { get; set; }
        public Int32? FistLineInstruction { get; set; }
        public List<VariableFxCop> VariableList { get; set; }

        public MethodFxCop()
        {
        }

        public MethodFxCop(String _MethodName, Int32? _FistLineInstruction, List<VariableFxCop> _VariableList)
        {
            this.MethodName = _MethodName;
            this.VariableList = _VariableList;
            this.FistLineInstruction = _FistLineInstruction;
        }

        #region IEqualityComparer<MethodFxCop> Members

        public bool Equals(MethodFxCop x, MethodFxCop y)
        {
            return (x.MethodName == y.MethodName);
        }

        public int GetHashCode(MethodFxCop obj)
        {
            throw new NotImplementedException();
        }

        #endregion
    }
}
